package com.itheima.text4;

import java.util.concurrent.ArrayBlockingQueue;

public class Box {
    public static void main(String[] args) {

        ArrayBlockingQueue<String> queue = new ArrayBlockingQueue<>(1);

        Customer c = new Customer(queue);
        Producer p = new Producer(queue);

        c.start();
        p.start();
    }
}
